package com.it18zhang.jdbc.datasource;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;

public class App {

	public static void main(String[] args) throws Exception {
		MyDataSource ds = new MyDataSource();
		Connection conn = ds.getConnection();
		Statement st = conn.createStatement();
		ResultSet rs = st.executeQuery("select * from customers");
		while(rs.next()){
			System.out.println(rs.getString("name"));
		}
		rs.close();
		st.close();
		conn.close();
		System.out.println("xxx");
	}

}
